more comments for static_compile branch and some more efficiency improvements for runtime codegen