min and max functions
some improvements for the repl

- running "tests" no longer fails silently and lists individual tests
- repl file is removed from the model after execution
- repl can run private functions (again)