Resolving compiler warnings.
Cleaning up some more warnings.
valgrind updates