Support for functions. 

A function is defined in the model-file after the "Functions:"-directive.
All functions is transformed such that it can access the model-variables.