Logging and recording desired signals from the simulator

Documentation to be added.