Added comments throughout the library.