Put /gen auf gitignore
Made user and password parametrable
Extracted Dialog handling