updated test to show debug info
Added ability to stop tasks through pools
Added testing and put a few fixes in
Added comment