Quick commit after dicking about with the code
Loop back on invalid payload size
Added another santify check on the data read
Added a missing line break
Adjusting the sanity check