Add sloppy file fixer

Added a sloppy file fixer. Needs improving, and it brings to light some
bugs, but it works and we have a complete suite now.

Now time to fix bugs and start GUI.