 The courtyard was entered via a drawbridge over an artificial ditch, giving access to a pend in the small north range.The castle contained a scriptorium during the 15th century, and five St Clair manuscripts, dating back to 1488, are in the National Library of Scotland.These include the Rosslyn-Hay manuscript, believed to be the earliest extant work in Scots prose.