added functions to retrieve dolls and max weight from file