arg for number worker threads (closes issue #16)

also, cleaned up debug output a bit