jQuery Infinite Carousel help

Hi I have been working on writing my own carousel, and I am relativlty new to jQuery so it proved more difficult than I thought.

The requirements I wanted are

  1. Clicking left and right links moves the slides left or right.
  2. I wanted the carousel to auto scroll.
  3. There are some buttons on the carousel numbered 1-4 I wanted the active slide number to be shown.
  4. I wanted to be able to click on one of the numbers and it goto that slide.

I have managed to do features 1-3, and I am struggling to do number 4.

My code is in my Git Repo, from line 70 is where I have tried to get the clickable buttons to work.

Any help on this will be much apreciated.