added required fields flag, fixes #16
Merge branch 'dev' into DeaconDesperado-required_fields
More complete tests for required field