Fixed phpdoc, typo and indentation issues.