Changes are for Arduino 1.0, should work as library with example now