Product distribution and sulfur behavior in coal pyrolysis