Refactored threadsafe change of Booleans. updated .gitignore-file.