-fixed error involving recursive setTimeout calls when clearTimeout is used before the nested call.
-removed unnecessary intervalContinue/timeoutContinue vars with implementation of clearImmediate
-added additional error checking on parameters to functions.