Updated bm.pde for 1.04 Arduino usage 

I updated the bm.pde code to allow for use in Ardunio 1.04