moved miner to seperate thread, fixed balance in gui