Defined keys variable and use keys when iterating
Removed unnecessary documentation