add some comments for code added under commit "Merge branch 'jn/static_compile_3'"