lib update wih new funcions and comment