fixes #11 - adds a precommit flag

allows you to remove trailing whitespace beforehand and not be left with a dirty repo after pushing.