Added file queue, removed detetctor references, build dist on npm install