openPort() and feed() combined.

noticed that the transmission of signals occur successfully only when
openPort() is called repeatedly anyways, so combined the two into one
function.