Fixed various typos and some additional phpdoc.
Fix comments.