New error code added.
Function return values changed
Changes in lib applied