fixed compiler errors with arduino toolchain, added dummy mode
big commit, check inside