Added "Hoard" treasure type
Beginning of a bugfix
Added generic table code