Update readme
Fix phpdoc
Reformat code to match coding standard