Fixes a NPE when search in the jtree fix #40
Small changes
import optimization
Fixes issues with cursor