minor edits and spelling fixes

couldn't get the tests to run, but I don't think I've broken anything.

If I have time I might put together a gruntfle