Add interval to resolve 'TypeError: a float is required' error and change starting elif to if
Set default value for debug
Merge pull request #19 from gitshaw/master

Add interval value and set first if statement