set the port to be a char not a int
add the MOD-IO
code refactored