add save button to document. and updateWizDocument function.
refactor debug code.
add deploy.bat and template.ini