change code formatting style
fix php doc comment errors
update docs
added script to generate the docs