refactored template, added gitignore