Clarified the intention of my utility data structures.
Some renaming and commenting.
Reorganizing imports, commenting and reimplementation using my Stack.
Minor changes.