Changed some variables and function calls so that they make sense
type-wise.

The return type of the function was wrong, so I guessed that what was
meant was `DefEnv` instead of `Env`.

Signed-off-by: Kristoffer Haugsbakk <haugsbakk@yahoo.no>
Fixed some function calls and variable names - variable `env` was never
declared, so I guessed what was meant based on the context and the types.
Removed Model.rsc, as it was almost a duplicate of Analysis.rsc.
Merge pull request #1 from nuthatchery/small_fix

Changed/fixed some variables and types in Analysis.rsc