deleted excessive fscanf, capitalization problems still exist.