fixed several typos

see issue #370