fixed whitespace errors
added pre-commit hook script that checks for whitespace errors