1. display the filenames. 2. display some output from regular commands (I'm not sure if you want to modify the output or just output it as is).
Both should be relatively trivial.
You've just included snippets of SLAX so far. If you've written a complete script, could you post it and I'll try to work out where any issues lie. I'm afraid I'm a bit busy to actually write examples at the moment.