Fix TRUSTROUTER -> TRUST_ROUTER
Fix assertion to only check for TCP sockets
Don't send packets with code 0
Clean up debug message
Fixes for detail file reader
Better error message for invalid LHS
Formatting