added comIO function code

Function to abstract file descriptor of com port. Can read and write
binary data. Code includes main for testing.