Fix option parsing

Fix #102

Now it won't crash if you send no options, or send bogus options.