Merge pull request #5 from alexdonskih/get_messages

Made the output messages case
Improved code portability, made messages output