added nested loop to array function. tested and works. reviewing fixes for properties and preparing for major overhaul of flow chart.