code now works.  time to start cleaning up for the alpha release!