New id generator class.
Corrected a few errors. Event id is now of int type.
Component ids are now of int type.