added remainder of functions within php class