added getKey() / getValue to closes #2