updated index.pl to pring out file and filename