Moved request params to uri instead of url
Better error handling & function documentation