Added the ability to define variables and user functions. Improved error handling.