Added fgets line to clear up problem with garbage input in io.c