fixed typos and removed unnecessary comments