Auto Hash Generator

And a lot of layout and file encoding fixes for legacy files.