Changed println to log. added intellij files to .gitignore.