fix lint: curly braces
fix lint: ===
fix lint: latedef
fix lint: use the same quotes everywhere (double)
fix lint: undef var
fix lint: remove trailing spaces
fix lint: maxdepth 2