More code cleanup

Also Changed GetProofOfWorkReward