Moved library code into separate folder from example project.