Add overflow check.
Add IntelliJ files to .gitignore.