For -xxxx, print out the parsed sections of "unlang"

So that we can see exactly what's been parsed, and what it has
been turned into
Minor changes
Remove unused functions
Fix issues found by cppcheck
We don't need a function in src/main for only one caller
Check correct entry
Leave input variable alone for debugging