Please use citations for code that originated from (or was written together with) formal papers and technical reports. In such cases many details about the motivation, related work, design, technical details (and proofs) are not necessary within the source code documentation.
Nowadays it is preferable to write code that works (and that is straightforward to use for the target audience) over producing over-detailed documentation that mixes irrelevant (for the user) implementation details with usage. In cases where the technical information does not fit into a paper, please describe it in clearly identified sections or parts of the manual.
svn+ssh://cliplab.org/home/clip/SvnReps/bibtex