Moved error reporting configuration to top
Removed repetition in setting paths code
Added comments
Merge pull request #25 from Lenton/3.4/develop

3.4/develop Improved the index.php file, make it trivial to add a new path