add template and switch to zlib license