add idea to gitignore.
some more logging.