Fix and document repository creation