Fixed more command-line code and added an example of how to use the current contact distance measure.