did input files the smart way, added digi printout