updated for arduino 1.0.1 and with slightly better docs
(still a pain to get working, sorry)