Fixed preInit function name
Created an EntitySetup class