Added php doc blocks and