template system is added.
Undefined template is updated.
init bug is fixed.