Fixing typos, PHPDocs

I'm not sure about this PR, but I've decided to clean some typos and fix PHPDoc comments. If you have comments - I will be glad to hear them.