Repositories functions renamed and doc updated