Working on script to parse data into separate directories