tidy and document