Working version

This is a working version.
The delete of messages isn't possible currently.