Changed redraw-mechanism to avoid memory leaks due to spin-handler.
Merge pull request #43 from birajpatel/master

Changed redraw-mechanism to avoid memory leaks due to spin-handler.