Many issues fixed, particularly with chainBuilder and Miner