New emitters, changes to work with v2 SDK, more tests and TreeVisitor added