Fixed get template logic and added gitignore