refactor into library
change cmake files for refactoring
simple testing
adding .gitignore