Added method to add files to repository index