Leaf capacity can be set in constructor
Fixes #3