Fixed a bug with file formatting errors.

Now checks for format errors when inputting scores as well.
Minor cleanup in other sections.