Added Arduino serial code fixes