Minor refactoring
-- moving intervalFile declaration next to libDir for clarity.