added a pre-commit hook to remove trailing whitespaces