Add assertion, fix a bug in pack_reverse_comm
Remove a commented line