Origin and Evolution of Long-period Comets