Apparently forgot to add this to earlier commit
Change file.puts to EOF
Move logging functions to helper to clean up Canto definition
Merge branch 'refactoring'