Add support for preset options

- Fix sprintf syntax bug
Merge pull request #1 from kryysler/feature/add-preset-options

Add support for preset options