Typos

Fix phpdoc and small issues.