Cleaned up code.

Made a barebones example app.