Code useful for analysis of far-UV spectra taken with the Cosmic Origins Spectrograph (COS) on the Hubble Space Telescope