Refactored records

* Centralised record definitions in hrl file.
* Passing the simulation input as records