Added message format config parameter, fixes #1
Remove unnesessary check.
Merge pull request #8 from zarkone/issue-1

Added message format config parameter (issue #1, pr #8).