Merge pull request #24 from lloydzhou/master

merge the params from REST requests.
fixes #25 and #26