show some error messages

This also involved some light refactoring of the Offset class.