Adding file validation functionality, functionality cleanup

Adds
* Validator interface class
* Validator option to file reader options
* invalid file header exception

Fixes
* parsing of file reader options to look at array key instead of array value