updated index.pl to pring out file