Start adding a test/example setup.
Fixing some bugs along the way.