iAdd the get_hash function to dynamically gather the used hash algo
Add struct formatting