reset depth to 0 after an empty line in repl
Half of with command implemented
remove some debugging stuff
a compile bug and some more debugging stuff
Oops committed to the wrong branch