Read the instructions?
Generally those codes gives you a large number of some type of pokeball (forgot which), you have to discard the amount of balls to make the number the ID of the pokemon you want (internal game ID might not match the pokedex number).
As for the freezing, disable all other codes.