doc updated, new functions exported