New keys() method and added documentation