fixed a few typos in main file