refactored (for in) loops on arrays, fixes #2
Merge pull request #3 from amida-tech/fix-2

refactored (for in) loops on arrays, fixes #2