__init__ functions updated to reset all variables