spawaveform: a->a_hat variable rename