Dr. James H. Gary, Chemical/Petroleum Refining