Reforming system for co-generation of hydrogen and mechanical work