More tidying, autosaves, delete trailing whitespace on save