Strip trailing whitespace, add new line at the end of each file, remove unnecessary double empty lines