made a library and an example project
reorganised files