Fixed some things and ran goformat.

Fixes #1