add functions to check empty line and compute indent level
fix variable name; indent_level -> indentLevel