Modded some stuff heavily. Added ifdefs for debug output in the controller class. Also changed m_read to unsigned char*