Minerals Update

* Fixed Hashmap Parametrisation error
* Reordered Main
* Added id to output