Working queue implementation.
Speed improvement on queue system.
Added some arguments to support directory vs file inputs
Prevent division by zero and begin work on -detail flag.