Cleaned up global circular queue pointer by passing reference into threads
Fixed reading files longer than IMPORT_BUFFER_SIZE (only read when buffer not full)