Adding a .gitignore file, replacing some slot usages with accessors