What is the goal or end of the commandment?

The goal is love out of a pure heart, not the selfish 'me generation' mindset of the world.

Watch the Teaching: Is Keeping the Commandments Enough to Be Saved?