Fixed typos and updated debug messages