added documentation mgsub