Mostly working version

Currently no testing
Mark project as a library