Add validation to settings.
Test validation.
Attempt to simplify validate code.
Merge pull request #17 from RyanMcG/options-validation

Options validation