Miner is now a class, added version
code cleanup and delete delete debugging code