Added a few basic unit tests
Merge pull request #5 from r-medina/asubiott-userinfotests

Added a few basic unit tests and some documentation
added error handling + a lil refactoring
accidentally got rid of userReq during merge