added phpdoc comments