have written the stuff to send over serial to arduino, but it isnt really working that well, need to modify the arduino code perhaps
finally able to communicate with the arduino by the serial. added the arduino.buffer(1) which was key. also sent all characters one by one