Added a theory section to wavefd describing equations used