moved commandQueue into it's own module. Still need to write tests