Added feature to allow quantities to be uploaded from a csv file and rebuild the list.  Also various other refactoring.