fixing message constructors
Merge pull request #7 from kmfk/bug-fix

fixing message constructors