Set some parenthesis
added file loading and initFlag