adding support for minkey and maxkey
Merge pull request #142 from fotonauts/minkey-maxkey-support

adding support for minkey and maxkey