Digital Miner overhaul - easier than I thought. Also cleanup.