Tidied up formatting and docs.