Galileo Support Added

Hello there, i modefied the code so it can run on Intel Galileo as well.
will test it in RPi as well later.

thanks
spaniakos