v0.3

add two functions to write all errors and warnings to a txt file called
“output”