Edited createSales and removeNames

Edited these two files to not have their own mains, but instead be
called by other functions. They had main lines such that they could be
called independently for testing, but now that they work, this has been
deemed unneccesary.