Fixed inproper handling of the stack for locals and arguments.
Also moved locals to the stack frame.
Added debug output for stack frame.
Broken: DIV instruction gives floating point error.
Fixed error messages.