remove unused and buggy env from ResumeContHook
use rlwrap if available
document debugger