Made the output messages case
Formatted layout of messages output, removed unneccesary variables
Used var as storage file name
Improved get_messages output template
New messages are first in output
Merge pull request #5 from alexdonskih/get_messages

Made the output messages case