Duality for modules and its applications to the theory of rings with minimum condition