Made filepaths relative
Added custom error if the input to foldandscore is of length 0