Computer simulation and theory of macromolecules