added javadoc to all of public api and changed how updated are recieved