Adding documentation for #ArrayFromList and refactoring