Cleaned up CMakeLists.txt and improved README regeneration.