Added payload width, and receve payload functions, and started write payload functios