had regex reversed with string in a couple of string-match
added ein and removed keyfreq