whitespace: cleanup
cmake: add a CMake buildsystem
fixes: get it to compile

Doesn't link, but that's minor right now.
readme: add a simple readme