added swingworker in processkeyevent
removing swingworker in astgen showPred
further swingworker stuff
some code cleanup