Fixed a bug with end of file. Added sorting to StringMap, removed now unnecessary vector of strings.