first hack to add d/l queues...
fixed minor indentation bug. :-/
massaging loop conditionals, other minor changes
merging in queue branch.