Use standard loop in createFromKeys. Improve createFromKeys tests. Fix documentation