Adding some phpdoc comments to some more functions