parseHeader discards extra data. Added removeHeader utility. Added comments.