add clew, fix bug in getfilecontents, add CMakeLists.txt
fix build, add inout(int N, float *), add some tests