Read type and payload length is no longer the first step

I have updated the code comment to reflect this change.