implemented class SingleTimer and timer()
commenting the core/internals