gofmt fixes, improved/added log messages, fixes #221/#222