added deleting and swapping example.
updated getEntity with entityName parameter