added documentation for functions
Added php comments
Added php comments
Added more function documentation
Fixed some spacing issues
Merge pull request #25 from vaci101/phpdoc

Phpdoc