fix printing time
add input/output file processing