Resfresh on change in array length (theoretically robust); removed debug logs
Minor refactor; Note odd behavior on refresh