Finished restructuring the code, Added inverter case study