created setup script with tested template operations

also features tee'd logging.