Added some functionality and documentation to UserService implementation.