Added get all from list function, to return an array containing list elements, fixed inproper looping code