refactor probe.
Merge pull request #129 from Kitware/refactor-probe

refactor probe.