added the Timer library, modified the arduino code to work
better with the java program.