burakozen:
Please help me about what to add the sketch.
It all looks too complicated to me and deletions might be more in order than additions. This background might be useful.
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino