removed trailing whitespace, fixed typos