Changed and added some comments, cleaned up some code.

Added a todo to create a 404 page. retyped a comment.
used a dirname(__FILE__) function for correct access to target php
files.