Issue #11 Further log functionality

* 'writeLog()' fails when unable to write file