Added phpdocs; fixed tests for updates