Added session logging.
Fixed .gitignore.