Bug fixes. Added more patterns
Changed the layout strategy of the event buffers so that the length of message segments are maintained.
Fixed bugs in RouterPattern and EventHeader