Implement grabbing repository data fully and refactor