Issue #11 Sensible file mode

Open the log file with mode "w" - Will create file if non-existent,
overwrite if existing. See

http://www.cplusplus.com/reference/cstdio/fopen/

for reference