added docstring for create api call
minor code refactor for redis prototype