added some comments for phpdoc.