Clean up main. Fix hashProof in CBlock