Added support for CMake

This adds support for CMake and I also cleaned up some whitespaces and also fixed the Readme.