Adding docs, changing a few phpdoc comments