got a mostly working version of Kaleidoscope in C