[Core] Adding docstring and fix the bug for simple_compile.