Split into library and sample project. Prepare for a relase.