refactored sim_init class to manage the memory of the initialized ctx, recorder, and timer. Added getters for each. Added many doc comments