Cleaned up debug messages and made some of them legit error messages throughout the code.