Finished off basic functionality of repo