added phpdoc style comments