Add better error reporting
Add godoc comments