SatMap: add debug log messages and fix a NASTY bug -- a one character bug that introduced an infinite loop.