Added titile and file name support to pais distributionfunction