compile intermediate bitcode, misc demo cleanup