added gitignore file and save method