added test input file and fixed print script