added code to read in catalogue