"Replaced all fscanfs with fgets, dunno how to check for errors (i.e. strings that are not a number)"