add ability to form an entity with a given id

begin typedeffing the id, a int for id seems stupid. at the very least
it should be an int32_t or something. and even then, probably a uint32_t