Fixed sending of messages, added localization and comments.