added ability to import and export Lex presets
fixed bug when exception in parser crashes the app while editing lex preset