Various minor changes (phpdoc comments, typos etc)