Add initial arduino library code

Note: Needs to be used with Arduino 1.5.2