remove useless contents.
add debug file to template folder.