Added loadwide, fixed assignment for undeclared variables