The by-products of processing include ethane , propane , butanes , pentanes , and higher molecular weight hydrocarbons , hydrogen sulfide (which may be converted into pure sulfur ), carbon dioxide , water vapor , and sometimes helium and nitrogen .