Fix: editmode is unused.
Formatting, spelling ..
Whitespace changes.