Fixed issue #87, Message Parser removes messages.

Also improved phpDoc and added testcase.
Good point by @thijskh it might be easier to read if the non-greedy flag was used here.