Cleaned code, added phpdoc, standardized indentation
Merge pull request #52 from sergeyklay/next

Cleaned code, added phpdoc, standardized indentation