The top picture shows fuel pump inside the tank... its a high pressure pump about 30psi to supply fuel to injector so that when injector opens the fuel will be in a spray pattern for better combustion.
That the magneto, the red coil is called the stator.