Fixed some file printing issues
Added config file parsing
Set up config variables in script