Fixed the parsing of variables and error handling.
Added an eval() function and a simple REPL