Fixed logging functionality, including choosing where logs go with a variable.
This will currently result in a lot of opening and closing the log file - I am looking for a more elegant solution.
As of now, the next step is to get some basic save functionality working.