Added integration test input and output files. Fixed bug that prevented ability to recover from erroneous input.