Add detectindent
Modify some comment