typos fixed
PHPDoc comments added