fix progress bar ending point

. added function to count the number of decades
fix batch_network HD file update

when batching networks, it was using the first network hard data file
for every network.
added a workaround in batch_decade that forces deleting that parameter.
FIXME: this increases the dependency of batch_network on batch_decade.