adds nice formatting for miner information
fixes earnings showing undefined when miner is disconnected