Fix mining script.
Implement command-line parsing for mining script.
Implement generic block solving method and target setters.
Remove commented-out code from mining script.
Update automatic parameter setting.