Fix Option handling

With this change, the library becomes somewhat useful. Closes #1.