ignore temp files
correct use of grad and H
partial pep8