Everything working for visual example.  Commit before the
	following changes:

		Changing to std::set where makes sense
		Removing t ranges from distrubitons
		making template function to handle all types of dists