Use github.com/erkl/monocle instead of simple string parsing
Add a basic test suite