Add support for multiple parameters
fix mismatched option count bug
Merge pull request #16 from shmax/master

Add support for multiple parameters