updated scripts and functions to accept an array of sources
moved files to proper directories