Make Public profiles work

Had to change the class name because Public is reserved in php.