Adding of the class QueueManager and writing of the Scheduler plus a few
modifications on some other classes