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