updated phpdoc. Also fixed some datatypes