Second part of main, learning the code
Main Pool Miner, minor updates while learning the code
The prime functions, minor updates while learning the code