Several fixes, made TL command work correctly, device now connects correctly