Semiclassical theory of heavy ion reactions