The inverter converts AC to DC in a basic sense. It controls the frequency of the AC current to control the speed of the motor....
HV Disclaimer - If you do plan to open the inverter cover up, discharge the bike and let it sit for 20ish minutes (thats what we used to recommend). HV discharge...