Clean up some warnings.

Some of this I just gave temporary values to give them a value.
Also fixed a typo in some of the check error messages.