added some javadoc
added tests for addUser method