refactored import method, added test and code for deleting flavor inventory when x is excluded for a flavor