Reformatting code with more modernized formatting
Added phpDoc blocks for all methods