Improve CMake functionality
Improve error output functionality