fixed problems with expressions, added a bunch of print statements for
now. still needs more testing