Added comments and few changes to the PRG initialization