use hash for all params except key name
only key is required, rest everything is optional
Merge pull request #24 from ranjib/uniform_api

Make api uniform