Fixes phpdoc and correct spelling error

This pull request fixes minor issues with the phpdoc documentation and fixes the spelling of "occurred"