update lib and readme