added php doc comments