Typos and use Configuration struct
Check paths and get filenames
Parsing configured regexes, added some states about said regexes and input files