Add common library source, update for arduino v1.0