Refactored library and example into separate projects.