fixed silly errors in implementation and testing.
Merge pull request #1851 from twobraids/laglog-revisited

fixes bug 962643 - fixed silly errors in implementation and testing.