Slight change in STA calculation

When first spike is before the length of a window, it is now padded with
zeroes instead of dropped.
Leftover try
New scripts