started cleaning up all purpose code, including inserting new directory structure and adding function for creating array jobs