Added setIsInDocEnv
Set isInDocEnv in convert
Added new commands