changed so that folders now stored in working directory inside output folder