remove print statements accidentally left in; add error reporting; scope checks on function calls and main function
enable assignexpr and check for valid object
update varexpr to match parsing and spec and remove line of unused code