Add update function, readme modfied