Changed names of variables for cosmetic reasons.
data -> trap
trapConfiguration -> Configuration
trapInstance -> Instance
So that now data.trapConfiguration -> trap.Configuration