add energy and areasum to mesures array
new fn - append last vector value until it reaches the right size