Better debug messages.
Fix typo.