Got source_name to read properly

Finally figured out how to use sprintf() to grab string from argv[1]
for the name of the file to write to. Still need to work out some bugs
on the first few lines being printed.