Started adding a better example. Fixed bugs.