Added check target (and one sub-target to it) + callgrind target.
Global pruning operation - there was quite a lot of unneccessary globals.