h2o.sub function and doc added