It has been an important settlement since the 14th century and was the largest port in Scotland for many years , handling Edinburgh 's cargo .
It has been an important settlement since the 14th century do to it 's strategic location .