Updated module extension code tpl.

added module var to ref the extended module;