changes in *.ino file and in the main java class

The Arduino is ready to start but there are a few problems with
the bluetooth connection in the java code.