Added first_key and last_key to dataset
Merge pull request #1288 from sguada/first_last

Added first_key and last_key to dataset