Updated library and documentation