added some documentation to library files