fixed a few typos/bugs