Added getMaxUses() and setMaxUses().
Fixes #1