added keys, docs, fixed counter example