Function to fix states coded as countries
Reorganized functions for clarity

Functions are now listed in the order that they are referenced.
Rename scnt to separator_count

Clear variable names are preferable.
Don't allow errors to pass unnoticed
Corrected incorrect reference to loctbl

This bug has been in the code for a very, very long time. I hereby blame
it for everything.
Minor reorganization of geocode_replace_loc
Clarifying documentation
Removed references to useless "typos" table
Revised geocoding process for unfound locations

No longer gives misleading error message, should successfully parse more
locations