added stop() method to TaskRunner and some constants and comments