Merge pull request #26 from hurtonm/master

Update msg class interface + tests
Set message flags