added .defaults
replaced call to missing `initParams` function
simplified `defaults`, should work now
Merge pull request #19 from fb55/patch-1

Added `.defaults()`