Fixed issue #87, Message Parser removes messages.

Also improved phpDoc and added testcase.
I guess I don't actually use or need this any more.