fixed some typos in the comments and an issue in main.c