Added AST.cs. Refactoring was helded.
Trying to rework event model and some program logic.