[doc] Adding loaderror event and some fixes