Error handling
Changed from eval to using functions
If an error is thrown by executed code it is per default reported in the log.
It is possible to define custom error-handling mechanisms.