Add logging imports. Fix indentation. Add .DS_Store to .gitignore.