Don't send packets with code 0
Clean up debug message
Fixes for detail file reader