added the comparison of piece hashes to download_piece method.
minor fixes.