added arduino makefile and moved function definitions so it would compile