Updated lib. Fixed different bugs.
Updated library.