fix a few typos (closes #352)