Redo configuration as a list. Add options validation. Fixes #13.

Tests passing.