Updated to work with IOIO bluetooth.
Write bytes optimization.
Minor variable name updates.