added extra functionality and made code work better with multiple queues. Programme now outputs a version number for reference