Modified for better preformance. Created more configuration options.
Merge branch 'master' into arduino-native

Updaing Arduino-native version with master
Modified current version for Arduino SDK
Further cleaned macros for Arduino SDK