Basic REST API documentation

Minor code changes - only added docstrings, wrappers and decorator module for passing arguments to sphinx