Stuwuif, mitiemp's post shows how the Freedom 20 should be wired: the AC shorepower goes to the i/c FIRST, then to the AC panel, since this is the only way the ATS inside it can work.
The shorepower goes to the main panel first in the diagram I posted. The inverter AC out goes to the sub-panel for inverter loads. This can be done with only one panel if desired - in this case the shorepower goes to the double main breaker and then to the inverter. The AC out comes back to the rest of the panel's breakers. This requires the removal of the wires from both hot and neutral to the positive and neutral buses on the panel.
The advantage of the layout shown in the diagram is that there is no chance of draining the house bank by leaving the water heater or other high amp load on by mistake while away from the dock. The inverter only powers the outlets and possibly other circuits on the sub-panel.
There has to be a circuit breaker before the inverter.