The settlement was formerly a royal burgh from 1342 to 1975 and a parliamentary burgh from 1708 to 1950 , the former status being conferred by David II of Scotland for hospitality he and his Queen received when shipwrecked there the previous year when returning from exile .
DET NOUN AUX ADV DET ADJ NOUN ADP NUM ADP NUM CCONJ DET ADJ NOUN ADP NUM ADP NUM , DET ADJ NOUN AUX VERB ADP PROPN PROPN ADP PROPN ADP NOUN PRON CCONJ PRON PROPN VERB ADV VERB ADV DET ADJ NOUN ADV VERB ADP NOUN .