Refactor template generation
Adding repository options
multiple repo support WIP