Small fixes

piecehash.md was missing the last part, and updated .gitignore to ignore
some files which were used for tests.