Basic rest API documentation

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