added constructor and allowed passing closures

- added constructor with one param to designate if Dice shares its own instance within itself
- allowed passing of closures (backward-incompatible)