Added message format config parameter, fixes #1
Add messageFormat param check