expand option and array version of files are working. next is clean up and commenting the code