fixed some errors with distSecond for ricians.  Still not working in testSimTypes.