Added comments for cursor decoding