legend scales now

empty rows are removed from contents map when read, adn an error message
for max condition 2 variable is changed