Make value key configurable and remove ranking code. Closes #61.