added parameter file reader to main