Changed CPF to Documents. Added RG generation in documents.