Update libs.
Improve code style and stuff.