Added exception for empty Queue
Added exception handling for the unable to read error
Merge pull request #5 from RichardOtvos/master

Calculate_badwidth fixes