finalise docs for repository class