updated scripts
updated Abstract SMA algorithm -added more diagnostics-