- modified timer reset function to configure periodic (instead of one-shot) timer; - updated comments;