Added functions to print file for Histogram Plot