Added a pre-commit hook for flake8 and updated README

Adding a pre-commit hook script for flake8