Original: They were responsible for gaining burgh of barony status for the town towards the end of the 15th century.
Simplified: They were given burgh of barony status for the town at the end of the 15th century.