Using proper TerminalRepr to output errors

Also paved the way for boost implementation

fixes #1