added comments and some other miner stuff