Doc updates and utility function for repositories