added name getter and fixed phpdoc