General Clean Up

Cleaned up code, added example class (TestApp.java) with a few
demonstrations. Still need to write documentation for it.