add cmake build (taken from tikzkit)
add commandline parsing
cleanup