Code style: trim trailing whitespaces, ensure EOF and UNIX EOL