Cleaned up a bunch of errors, warnings, and debug