store active entities in map instead of a linked list

also added UUID generation for cloned entities