(SO....I have to see both codes side by side so I can learn for my mistakes )

You 've done excellent coding ...I'll give it a try although I had problems with averaging routines -keep sending '0' as result!