Fix parsing, so variables are also recognised.
Do not crash on error, display a proper message.
Updated .gitignore for IntelliJ.