Minor changes

Minor change to error code.
Fixed an out of place varg.
Added an incorrect piece of code to generate a stacktrace.
Changes required for EA encoding

Added another field to the evaluator return, specific to registers.
Tidying up and fixing code