Tidying the code

Loaded the code into TextMate with the Arduino bundle. Much easier to
make the code nicer.