Replacing output to stderr with a Logger.
Updating gitignore.