Updt

Deleting all memory after closing the program now.