Many 5 hp offer a small charging accessory what I call a lighting kit as it can run the running lights but really does not charge the motor up. When you get into the larger engines for example the 8, 9 or 9.9 hp engines with electric start, then you can push the button to start the engine and once it is running, it will then recharge the battery or batteries. In the event of a two battery with battery selector, never change the setting on the battery selector or you can destroy the alternator in the engine.
Most wiring is color coded black and red with black being ground or negative while red is postive/hot. Please do not confuse this with shore power as that is a different animal all together. Some wires are black an black/white strip color. The black and white wire is the postive/hot wire coming off the engine. That at least should tell you what you are looking at.
When wiring to the battery or batteries it is most important to wire up correctly. You can simply look at the battery to determine the ground and hot./positive terminals. Then you can trace them back to the transom area to see how they were connected to the engine. If unsure what they were for, then for safety, remove the wires.
The easiest connection I have found for connecting wires from the battery to the engine wires is using the two prong or the three prong trolling motor connectors as they are readibly accessible. They can carry the current when starting the motor for example 20-22 amps thru the connector and while the motor is charging the battery which of course is less anywhere from 4 to 8 amps depending on the engine.
As for cable size from the battery to the connector, I always used black and red cabling to keep consistency in color using either # 8 or #6 battery cable. Small wires will eventually burn up as much current draw is going thru the smaller wires when starting the engine; thus, the safety in larger cabling is highly suggested.
Appx. 10-15 years ago, the marine industy went to yellow wiring for DC ground as many were confused by the black wire for shore power which is the hot lead. So if you see yellow, it should be DC ground but to be safe, always check what it is coming from and going to. Hope this helps.
crazy dave condon