Cleaned up terminal and output.txt