Added comments; frequency counter is currently broken. Saving progress so I can rewind.
Made currentTime volatile and updated in the interrupt loop to improve frequency calculation