added Doc comments on repository.js