Documentation for the ejecta mass code