Completely refactor main
Completely refactor main

Main is responsible for iterating through direcctories and passing a
target and its output path to contate_files

circuitandcode/contate,circuitandcode/contate