Fixed problem with signed byte. Gray code conversion now works