Turned on warning for comparisons between variables of differing signedness, and cleaned up warnings.