tweaked and finished arduino export