refactored little bits
fixed our precommit hook