miner bug fixes

multithreading code finished.
fixed misc bugs - long running time w/ {{vgrelease new}} template.