use Partials in example
small fixes in Generator