Fixing default arguments for "params" parameter

Was set to {} in several cases, which can cause problems. Set to None instead,
then in the function set to {} if the value is None.
Merge pull request #68 from adamrp/fix_default_parameters

Fixing default arguments for "params" parameter