eliminate global variable lasttime and counter_in_minute,
making them member of struct global_context;
add TODO developing log to project.