Updated phpDocs and regenerated api documentation