Use Warning instead of error for invalid switches. Fixes #105.

Also a miscellaneous cosmetic commit.