add header info fields for LM and O tags and do not leave trailing tabs