Fix error handling in cloneRepository
Add makefile
More development