fixed assignment operators
initial commit (averaging by index not time)