Changed the internal representation of Entities, making it more streamlined and faster. Reconfigured saving and loading to align with the change to entities.