K.H.
I agree with the pp that the clicking is indicative of a bad latch. The LC will be able to help you more in person, but you can try making sure your nipple is aimed for the roof of her mouth rather than straight back and that she's latched on to the entire areola and not just the nipple.
I also saw that someone had recommended Ezzo/Babywise and I just wanted to warn you that he is *very* controversial and his methods, particularly for breastfed babies, could potentially cause a great deal of harm.
Good luck to you!