now saving v.txt and l.txt to record random valuations for future
experiments.
added redundant but more convenient output.