fix bug when unlinking struct link

Correctly set the link_head pointer if unlinked link is link_head.
fix the read logic

If only iv has not been received, we wait for iv_len bytes.
misc updates

Since it's in the early stage of developing, it's okay to write this type of log, or it's not?