distribute file info into multiple arrays, implemented some list display