Is there a command to set the GPRS modem to automatically register in GPRS in CGLASS = 'B'?

Look at the +WGPRS command. If the command is set to 'AT+WGPRS=0,0' it will cause the modem to do an automatic attach.