Source code for Arduino

Source code for Arduino and small fixes to Fonera code.