Fixing minor defects with scripts and .gitignore