add cancelFramerate function, improve DandD demo