Hashes in YAML files

Moved all hashes into .yml files in /lib/data and changed the code to load the hashes from there.