 byte currentPosition[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
 
 /*
- * Array of current periods assigned to each pin.  0 = off.  Each period is of the length specified by the RESOLUTION
- * variable above.  i.e. A period of 10 is (RESOLUTION x 10) microseconds long.
+ * Array of current periods assigned to each pin.  0 = off.
+ * Each period is of the length specified by the RESOLUTION
+ * variable above.  i.e. A period of 10 is (RESOLUTION x 10)
+ * microseconds long.
  */
 unsigned int currentPeriod[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
 
-//Array of current ticks for each pin
+/*
+ * Array of current ticks for each pin.  These count up to the
+ * currentPeriod values in the above array.  When the period
+ * values are reached, the head is stepped.
+ */
 unsigned int currentTick[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
 
 /*

  
  //Interrupts must be disabled while resetting, otherwise bad things happen
  cli();
  //Set all the pins to reverse
  PORTD=B10101000;
  PORTB=B00101010;

        currentPosition[2]++;
      }

      //Pulse the step pin
      if(ebi(portd,2)){
        cbi(portd,2);
      }else{
