Added CMakeLists.txt for cmake
Added README
Added cancellation point for threads. See http://stackoverflow.com/questions/6621785/posix-pthread-programming