Write to log file
Merge pull request #51 from martinghunt/master

Write to log file