Added PHP Doc comments http://www.phpdoc.org/docs/latest/index.html
More comment and whitespace cleanup
Merge pull request #5 from killfall/phpdoc

Added PHP Doc comments