Saves target temp to file

Also added comments and spacing for easier readability, changed,
recoloring of errors to before message