Rename RequestDocument by Document, Fix algorithm mapping