adding more useful serial test code
fixing final arduino code merge