cleanup and reformat code
write code to load file lists