Added debug info for results
Made group selects arrays
Gave all selects and inputs unique names
Fixed labels
Added echo of type created
Fixed variable name