Added a Main class for ease of testing, and a GenerateTuples class for
ease of generating data files.