move some files and change code to allow two possible arduino protocols