fixed idle_time logging bug, for now; added comments