implemented the click time feature, added some comments and fixed up a
couple things