Fixed issue #87, Message Parser removes messages.

Also improved phpDoc and added testcase.