options validate
Finished converting to module. Need to write more tests.