added a few test cases, added some javadoc, added resource for user