Solved Bugs.

The messages are now saved in a txt file.