Implemented pull from repo (mostly done)