Add logging. Updated gitignore file.