Crash detection working. Adds resutls printing. Adds resutls to file.