Add error detection and toString for Maybe