cleanup comment
lots of small changes, mainly repl support