Better errors

This improves the error output of most errors in `simplebridge`. It is not a very complex patch, but is long.
you mean as an unnamed func? I guess I could do that, but I don't really see the value in it. Can you explain what the advantage is over a top-level function?