made checks on headers case insensitive
typos and killed duplicates