configurable window size and length of array generated by spout. Added average message size calculation based on array length