added subroutine setfile to make changing input files easy;