Added option to pass in filename to EKD constructor