Changing parameter order due to backwards compatibility issue
Merge pull request #13 from elasticio/master

Changing parameter order due to backwards compatibility issue