added javadoc comments to MessageParser