Reorganized the project into a library and example application.