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