Small changes for  UnsupportedOperationException.
Updated .gitignore.