removed debugging output and outputs contents of file