Dealt with several compiler notices by verifying and then fixing or suppressing. Reduces compilation output noise.
Renamed proofOfWorkLimit to maxTarget along with get/set and minor refactorings.

* proofOfWorkLimit renamed to maxTarget to get it more inline with commonly used terminology (wiki, etc.)
* some misleading local variables renamed from 'difficulty' to 'target'