typo: fixed phpdoc and error messages
Merge pull request #46 from matej21/typos1

typo: fixed phpdoc and error messages