refactoring and support RaspberryPi
refactoring
added RsapberryPi example