removed debug statements for reading into file