cmake working with debug mode. README.md updated.