Add .DS_Store to .gitignore
Refactor postprocessing for testability