use autocmd and filetypes for specific spacing
added function that removes trailing spaces, mapped to F5