remove trailing whitespace
Make all file extensions the same