From the Outer to the Inner Solar system: The Origin and Evolution of Comets