Added automatic file name save

dialog box for saving the file
fixed stop detection update screen error (errors with wiring the error
lines)