added a framework for API methods with an example adduser