improved entities added toString method with json serialization