fix spelling mistakes
optimize utilized std::map by mapping to value- instead of pointer-types
define struct-names directly instead of typedef'ing an anonymous struct