Fixed bug on evaluate functions. Added feature for passing expressions as case;