Added some basic commenting to the PHP files.