fixed empty file list or queue handling and added some comments