replaced crappy proprietary makefiles with cmake build
cleaned up formating