Refactoring cv and remove useless files