added more php doc and fixed id of components