fixed serial code.
Merge pull request #4 from Williangalvani/master

fixed serial code.