Simplify generator declaration
- fix crashing bug where I was modifying a Dictionary while looping over it
- update code to use Printable protocol for displaying objects