changed compilation flags, static linking is broken with cmake, added comments, added chronometer for benshmark