Added visibility keywords and phpdoc