added support for error messages. Messages are shown on top (fixes #57)