Added .gitignore.
Modified filters to accept a file object.