Made a Template Circuit and cleaned up Circuit Code