What is the version of the following sentence with correct punctuation?

The main purpose was to ascertain local knowledge and userpreferences which along with an analysis of formal legal requirements in this field are to insure that any future implementation is conducted with local accept and support
The main purpose was to ascertain local knowledge and user-preferences which, along with an analysis of formal legal requirements in this field, are to insure that any future implementation is conducted with local accept and support.