Tidied up lint errors and docs