Make the debug flag check case-insensitive so debugging by hand isn't confusing
Fix comment typos