added more messages to explain, fixed infile error