simplifying parser code to read integers directly

still need the string variable though to get rid of the first header
line in the text file.