update ther serial api
Merge pull request #1 from devoncarew/serial

update the serial api