Try Marginalia for literate programming.