added traversing of the the tree and printing stuff inside mipsgen.c