Clean up a bunch of warnings and remove a bunch of prints.