Add conf, remove src/global
Refactor circuit components to fit within a class