ARM stuff refactoring
AVR stuff
general lib fixes
build system
tests and examples updates