Added PHPDoc statements, cleaned up comments, added standard header block