added repository structure and new function to find out the repository location