Improve exception handling
Add main statement
Ignore JetBrains project files in git
Add fixes requested in comments
Complete autoconfig feature