Replace parameters with object
Merge pull request #1 from passy/options

Change API to take an object instead of 2nd paramter