Refactor and improve implementation of compiler

Close #30
Improve text handling in text editor
Add AutoReformat and BracketCompletion settings #25
Fix crashes when reformatted indent

and Improve reformatter
Add completion of target selector