moved config stuff to the top of the file moved BEGIN block to the bottom of the file added comments added $cgiDebugMode flag and explanation
Changed paths: