Pattern matching and hashing

Restructured because unit name must be the same as the file name but no
ordinal values are allowed and therefore date string in filename not
possible