Added output logs for each state of the activity lifecycle, saved counter variables between activities, created Tv variables, updated counters