bugfix install and uninstall, add template files