turn off debug by default, fixed some typo