Added name property to array
Added missing headers
Added missing headers
Renamed variables
Fixed the syntax error with semicolons