Precalculate name and code maps for fast lookup.
Merge pull request #4 from ozinc/precalculate

Precalculate name and code maps for fast lookup.