Add stub function for Entity
Add some comments and delete unnecessary codes