updated notes
added pre-commit, fixed pep8 warnings