Share EntityManager file and Basic code changing
Signed-off-by: Hui Zheng <hzheng@wpi.edu>