added comments. getting entity from world by id implemented