     v1.3.1 - Changed probability polling frequency to once a second
     v1.4.0 - Added ON/OFF Missile Switch from Sparkfun
     v1.5.0 - Added scheduler and gaussian library for random values
+    v1.5.1 - Converted speed and direction function to scheduled task
 */
 /**************************************************************************/
 

Task pauseTask(&pauseCB);
Task restTask(&restCB);
Task sleepTask(&sleepCB);

StuScheduler schedule;

//halt laser at certain spot for a few moments at this time
void setNextPauseTime(unsigned long avg_sec_to_pause=15, double variance=12){

  setNextSleepTime();
}

void loop() {

  schedule.run();

  //check if switch is on or off and pause if off
  if(!mSwitch.switchState()){
    laser.fire(0);
    mSwitch.ledState(0);
