Add a bit of quoting
Add automatic cleanup; simplify code somewhat
Drop cleaning up comment
Fix up message at the end of the run.

Fixes #5
Add a few helper functions
Get rid of pointless commands
Use "$@", not $* where appropriate
Log to per-item logs

Fixes: #6
Use run for dpkg -l
More quoting