parsing files now using an input file argument, allows for meta-information