Fixed typos and removed debug messages