fixed || && associativity, fleshed out printtree.cpp