0.9.1 Tidied up code and fixed a typo.