Fixed parsing payloads, take payload length in to account.
Implemented peer verification of peer authentication.