fixed typos and whitespace issues