Fixed length byte in APDU formatting
Changed debug prints to use card context