Replaced 'saveData' function with 'instantSave' and fixed some memory leaks

Interface has to be fixed so that users is given a list of the log
files, from which they can choose what to continue working on.