formatted code with auto generated php doc to be neater