added comments and sampleTimer as a usage example