Added some error handling and changed class context to run_context
Renamed class queue to run_context_queue.
run_context_queue now called run_queue.
Minor fixes