Cleanup and include pre-commit script
Included installing pre-commit hook in npm install script