Computing unit groups of curves. (May 2021)