fixed entity count
trying to fix entity count
Cleaned the code and added comments
added logic for updating lastupdatedUUID based on event logic
debugging
Added TODO for what needs to be fixed