Updated array building and updating to account for missing/bad data
commented out console.logs