block reading now correct with strncpy for lines
now checking the line length of the correct file
added some debug print options
removed reading checks