Delete some debug printouts.
Fix problem when some formats are not recognized.

So far, almost every test is passing...