[doc] Document all the API's
[fix] Added boolean indication of early bailout