AM: add license terms to modules/bgy3d.f90