added trim trailing whitespace mode to .editorconfig
Refactoring of README.md and updated example of usage in README.md