Added PHP docs to code