HM-10 BlueTooth

Hello i got my HM-10 Bluetooth in today and i was wondering something sense i just have it on the ftdi to test with the program RealTerm i was wondering what are the commands to change the name of it and what is the command to set a pairing code? i looked around and i found commands to go from master to slave and a few other things but not how to change the name nor how to add or change the pairing code? Soon i will be adding this to my latest arduino project just for now I'm trying to set it up.

Joseph

Hello i found the commands for the pin password and how to change names on this datasheet

http://www.seeedstudio.com/wiki/images/c/cd/Bluetooth4_en.pdf