created file_writer.py and stopper.py to capture output to a file.