Has SMA averaging algorithm added to code. Has types corrected for ProcessDataStruct. Problem occurs when line 299 in uncommented.