first crack at the difficulty switching digital currentcy mining script
modify notes
isolate all system calls and swapable pieces to separate functions