Get all entities

New method and other small modifications