Added total demand indicator
Added total head attribute
Set min diameter for mainpipes