Refactoring of messages

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
Merge pull request #2 from oleg-nenashev/advanced_priority_queue

Refactoring of messages