added missing file Entity.php
added missing comments