Fix license
Generate hash functions