JAC: allow filenames for subscans other than one
JAC: add a function to check if a file is present