Add some useful code from experiment branch

It adds cmake, simple c and some changes in README