See Bowmna's Group: https://scholarblogs.emory.edu/bowman/
This file contains all the codes needed for fitting PES using MSA.
Video tutorials are available online on YouTube: https://youtu.be/WzChdPWc7tQ
Video tutorials can also be dowloaded on group website: https://scholarblogs.emory.edu/bowman/msa/