add lib and template. update readme and license