Initialize repository and structure