initial framework for optimization done.  Huge opportunities to clean up, modularize, and increase efficiency.  Particularly in repetitive dictionary building.