added extra if to check if ownrepo or completerepo
added extra if to check if ownrepo or completerepo--better
cleaned importer class initialize
made distributorclass universal