Cleanup

Some clean-up (unnecessary `return`s removed, MSGIDs added to last few errors) and a `strjoin`-like implementation for the `join` function that doesn't concatenate strings in a for-loop, but builds an intermediate cell array that is joined in one go.