Initial switch to cmake

Had to split CalcThread in header and source
Rearanged everything
Add README