jAST updated functions 9

switch cases and checks fixed