To change the trainer information use this. It will change the information of ALL the Pokemon in all boxes. You could use some filters, like filtering for only specific TIDs, specific boxes or whatever, if you don't want to have them all changed.
.OT_Name=Your Name
.TrainerTID7=123456
.TrainerSID7=1234
.OT_Gender=1
For the gender 1 is female, 0 is male.