renamed case stuff
case apply and pattern match code
more eval cases, some math