Add some comments in index.php and clean up code.

Some more guidelines have been added to CONTRIBUTORS.md
Merge branch 'master' of https://github.com/Phyks/Freeder