I agree and understand completely but the purpose was to have militias rather than a standing army as you pointed out. Every able bodied person was expected to be armed, trained, and ready for battle. Again, because that was needed in order not to have a standing army as you pointed out. We have a standing army and we have no militias. Seems like the intent of the 2nd amendment has gone by the wayside. Its no longer applicable. Seems like the first part of the 2nd amendment dealing with militias should be removed at the very least.
maybe it should be changed from
"A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed."
to
"The right of the people to keep and bear Arms, shall not be infringed, being necessary to the security of a free State."
That's the way everyone is interpreting it. Might as well make it official and remove all doubt.