Refactor general toString method. Add `.DS_Store` to .gitignore.