making average and max layers explicit

buildling a framework to add more layers to 'average' and more layers to
'max'.
pylinting
just a comment
only output relevant grid

it will be relevant if there is biomass
runtime error fix

glob makes a list so i can't append it, but I can concatenate it!