got basic arithmatic evaluation and variable defination working

I also fixed up some stuff with exiting on eof, so it no longer
segfaults. And I added a few things to catch errors and exit more
gracefully instead of causing a core dump