fixes to Rx function, add command line functionality

Program will now run on the command line for quick sending and receiving
of data over the gpio pins.
add documentation for command line functionality