Tidying up and documenting for release