Added support for customising spellchecker languages, and began adding unit tests.