Converted the library to a literate program.