tidying and docs