New and improved orbits of historical comets: Late 4th and 5th century