added write to file button, which appears to be working.  I tested some of the distances in teh output file and they were correct.