fragmentation out of bounds thing solved
started writing close connection function
merged with master code that solves the end fragmentation index out of bounds
Reassembly works fine now