More debugging of motion model code.  Next need to reintegrate into main ofreq code.